const mongoose = require('../db.js'); // 引入数据库连接模块
const Schema = mongoose.Schema; // 拿到当前数据库相应的集合对象

const headimgSchema = new Schema({
  type: {type: String },
  file: { type: String },
  userid: {type: String}
})

module.exports = mongoose.model('Headimg', headimgSchema);
